package operation.memento;

public class Client{
    public static void main(String[] args) {
        GameRole role = new GameRole(100, 90);
        System.out.println(role);

        CareTaker careTaker = new CareTaker();
        careTaker.setMemento(role.createMemento());
        // ...
        role.recoverFromMemento(careTaker.getMemento());
    }
}
